package com.fy56.platform.logistics.mapper;

import com.fy56.platform.logistics.common.mapper.IBaseMapper;
import com.fy56.platform.logistics.model.VipOpenidRelate;

import java.util.List;

public interface VipOpenidRelateMapper extends IBaseMapper<VipOpenidRelate> {

    List<VipOpenidRelate> select(VipOpenidRelate record);

    /**
     * 根据openid查询单条记录
     *
     * @param openid
     * @return
     */
    VipOpenidRelate selectByOpenid(String openid);

    /**
     * 删除记录
     *
     * @param record
     * @return
     */
    int deleteByVipOpenidRelate(VipOpenidRelate record);

    /**
     *
     * @mbggenerated 2018-06-27
     */
    @Override
    int deleteByPrimaryKey(Long id);

    /**
     *
     * @mbggenerated 2018-06-27
     */
    @Override
    int insert(VipOpenidRelate record);

    /**
     *
     * @mbggenerated 2018-06-27
     */
    @Override
    int insertSelective(VipOpenidRelate record);

    /**
     *
     * @mbggenerated 2018-06-27
     */
    @Override
    VipOpenidRelate selectByPrimaryKey(Long id);

    /**
     *
     * @mbggenerated 2018-06-27
     */
    @Override
    int updateByPrimaryKeySelective(VipOpenidRelate record);

    /**
     *
     * @mbggenerated 2018-06-27
     */
    @Override
    int updateByPrimaryKey(VipOpenidRelate record);

    /**
     * 更新状态
     */
    int updateVipOpenidRelate(VipOpenidRelate record);

    /**
     * 查询formid
     */
    List<VipOpenidRelate>  selectVipOpenidRelate(VipOpenidRelate record);

}